Keycloak REST Services 1.5.0-Final

Path: / admin / realms / {realm} / clients / {id} / client-secret

Get the secret of this client

Path parameters:
realm - realm name (not id!)
id - id of client (not client-id)

Resource Methods
Method Summary
NameDescription
POST /admin/realms/{realm}/clients/{id}/client-secretGenerates a new secret for this client
GET /admin/realms/{realm}/clients/{id}/client-secretGet the secret of this client

Method Detail

POST /admin/realms/{realm}/clients/{id}/client-secret

Generates a new secret for this client

HTTP Example:
POST /admin/realms/{realm}/clients/{id}/client-secret
API Example:

ClientResource.regenerateSecret({'realm': /* name realm name (not id!) */,
  'id': /* id id of client (not client-id) */});

Output:
CredentialRepresentation -
Produces:
application/json
Consumes:
application/json

GET /admin/realms/{realm}/clients/{id}/client-secret

Get the secret of this client

HTTP Example:
GET /admin/realms/{realm}/clients/{id}/client-secret
API Example:

ClientResource.getClientSecret({'realm': /* name realm name (not id!) */,
  'id': /* id id of client (not client-id) */});

Output:
CredentialRepresentation -
Produces:
application/json

Keycloak REST Services 1.5.0-Final